package com.java.domain;

import java.io.Serializable;

public class BOrder extends Page implements Serializable {

    private String oid;         // 订单编号
    private String payment;     // 总价
    private String status;      // 支付状态
    private String createtime;  // 支付时间
    private String uname;       // 购买的用户名称
    private String odid;        // 订单详情编号
    private String gname;       // 商品名字
    private double gprice;      // 商品编号
    private double gtotal;      // 商品总价
    private String gimg;        // 商品名字
    private int num;            // 订单数量

    public BOrder() {
    }

    public BOrder(String oid, String payment, String status, String createtime, String uname, String odid, String gname, double gprice, double gtotal, String gimg, int num) {
        this.oid = oid;
        this.payment = payment;
        this.status = status;
        this.createtime = createtime;
        this.uname = uname;
        this.odid = odid;
        this.gname = gname;
        this.gprice = gprice;
        this.gtotal = gtotal;
        this.gimg = gimg;
        this.num = num;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getOdid() {
        return odid;
    }

    public void setOdid(String odid) {
        this.odid = odid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public double getGprice() {
        return gprice;
    }

    public void setGprice(double gprice) {
        this.gprice = gprice;
    }

    public double getGtotal() {
        return gtotal;
    }

    public void setGtotal(double gtotal) {
        this.gtotal = gtotal;
    }

    public String getGimg() {
        return gimg;
    }

    public void setGimg(String gimg) {
        this.gimg = gimg;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "BOrder{" +
                "oid='" + oid + '\'' +
                ", payment='" + payment + '\'' +
                ", status='" + status + '\'' +
                ", createtime='" + createtime + '\'' +
                ", uname='" + uname + '\'' +
                ", odid='" + odid + '\'' +
                ", gname='" + gname + '\'' +
                ", gprice=" + gprice +
                ", gtotal=" + gtotal +
                ", gimg='" + gimg + '\'' +
                ", num=" + num +
                '}';
    }
}
